import 'package:example/models/node_entity.dart';

class WidgetEntity {
  final int id; // 组件id
  final String name; // 组件名称
  final String localName; // 组件名称 中文
  final String info; // 组件描述
  final int lever; // 组件推荐值
  final int family; // 组件分类
  final List<int> linkIds; //  组件连接id
  final List<NodeEntity> nodes;

  WidgetEntity({
    required this.id,
    required this.name,
    required this.localName,
    required this.info,
    required this.lever,
    required this.family,
    required this.linkIds,
    required this.nodes,
  }); // 组件节点
}
